<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<link href="/styles/general.css" rel="stylesheet" type="text/css" />
<link href="/styles/main.css" rel="stylesheet" type="text/css" />
<script src="/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/js/jquery.ufvalidator.1.0.1.js" type="text/javascript"></script>
</head>
<body>
<div class="main-div">
<form action="/role/edit/roleid/$roleid/" method="post" name="myform" id="myform">
<table cellpadding="2" cellspacing="1" class="table_form" id="general-table">
  <caption><strong>修改角色</strong></caption>
	  <tr> 
      <th width="20%"><font color="red">*</font> <strong>角色名称</strong></th>
      <td><input type="text" name="role_name" value="$role['name']" size="30" class="req-string req-min" maxlength="30" minlength="2"></td>
    </tr>
	  <tr> 
      <th><strong>角色描述</strong></th>
      <td><textarea name="description" rows="2" cols="20" id="description" class="inputtext" style="height:100px;width:500px;">$role['description']</textarea></td>
    </tr>
</table>
  <div id="errorDiv"></div>
  <div class="button-div">
	  <input type="hidden" name="forward" value=""> 
	  <input type="submit" id="dosubmit" name="dosubmit" value=" 确定 ">
      &nbsp; <input type="reset" name="reset" value=" 清除 ">
  </div>
</form>
</div>
{template 'footer.html'}
</body>
</html>
<script language="javascript" type="text/javascript">
$().ready(function() {
    $('#dosubmit').formValidator({
      scope   : '#myform',
      errorDiv: '#errorDiv'
    });
});
</script>
